using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace FiltronASP.Helpers.HashExtensions
{
    /// <summary>
    /// Klasa pomocnicza do konwertowania tablicy bajtow.
    /// </summary>
    public static class BinaryToStringExtensions
    {
        /// <summary>
        /// Konwersja tablicy bajtow do stringa.
        /// </summary>
        /// <param name="bytes">tablica bajtow</param>
        /// <returns>skonwertowana do stringa tablica bajtow</returns>
        public static string ToBase64(this byte[] bytes)
        {
            return Convert.ToBase64String(bytes);
        }

    }

}
